package com.example.demo.servlet;


import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class MyHttpServlet extends HttpServlet {
    public MyHttpServlet()
    {
        System.out.println("Constuctor: MyHttpServlet");
    }

    public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException {
        System.out.println("MyHttpServlet doGet");
        res.getWriter().println("doGet response");

    }
}
